package com.mobile.clouree;

import android.content.Intent;
import android.net.Uri;

import com.adobe.fre.FREContext;
import com.adobe.fre.FREFunction;
import com.adobe.fre.FREObject;

public class AndroidAnePhone implements FREFunction {

	@Override
	public FREObject call(FREContext arg0, FREObject[] arg1) {
		try
		{
			String num = arg1[0].getAsString();
			Intent it = new Intent(Intent.ACTION_CALL,Uri.parse("tel:" + num));
			arg0.getActivity().startActivity(it);
		}catch(Exception e)
		{
			
		}
		return null;
	}

}
